<%@page import="lbsproject.processaudit.model.Worker"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%-- css: "/css/core.css" --%>
<div id="header" class="section">
	<h1 id="logo"><a href="#"><img src="image/logo.gif" alt="" /></a></h1>
	<p id="quick-menu">
	<%
	Worker loginUser = null;
	if (session.getAttribute("loginUser") instanceof Worker)
		loginUser = (Worker)session.getAttribute("loginUser");
	String loginInfo;
	if (loginUser == null) {
		loginInfo = "<a href=\"index.jsp\">登录</a>";
	} else {
		loginInfo = "欢迎你，"+loginUser.getName()+"| <a href=\"Logout\">退出</a>";
	}
		
		String msg = "";
		if(request.getAttribute( "msg")!=null && !request.getAttribute( "msg").equals( "null"))
				msg = request.getAttribute( "msg").toString();
	%>
		<%= msg %>
		<%=loginInfo %>
		|
		<a class="last" href="#">加为收藏</a>
	</p>
	<ul id="main-nav" class="nav">
		<li class="${param.index}"><a class="m-n-1" href="index.jsp">首页<span></span></a></li>
		<li class="${param.taskManage}"><a class="m-n-2" href="taskManage.jsp">任务管理<span></span></a></li>
		<li class="${param.personManage}"><a class="m-n-3" href="personManage.jsp">人员管理<span></span></a></li>
		<li class="${param.executeManage}"><a class="m-n-4" href="ShowTaskExecution">执行记录<span></span></a></li>
		<li class="last hide-out"><a href="#">帮助中心</a></li>
	</ul>
	<%
	String needLogin = request.getParameter("needLogin");
	if (needLogin!=null && needLogin.equals("true") &&  loginUser==null) { %>
	<form action="Login" method="post" id="user-login">
		<p>
					
			<label for="username">用户名：</label><input class="input" name="username" type="text"/>
			<label for="password">密码：</label><input class="input" name="password" type="password"/>
			<input id="login" class="btn" type="submit" value="登录"/><a id="reg" class="btn" href="#">注册<span></span></a>
		</p>
	</form>
	<% } %>
</div>
